package com.zzh.study.demo;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @PackageName:com.zzh.study.demo
 * @ClassName:WebFluxDemo
 * @Description:
 * @author:zhangzhanheng
 * @date: 2020/12/18 11:19
 */
@RestController
@RequestMapping("/webflux")
public class WebFluxDemo {

    @GetMapping("/getinfo")
    public Mono<String> get() {

        return Mono.just("WebFlux Demo");
    }

}
